local year=year in 1

/* Full-time student */

if `year'<=1983 {
	gen byte student=.
}
if 1984<=`year' {
	gen byte student=0
	replace student=1 if studftpt==1
}
lab var student "Full-time student"
notes student: Not available before 1984
notes student: Part-time students coded as zero
notes student: CPS: derived from a-ftpt, peschft

/* Part-time student */
if `year'<=1983 {
	gen byte studpt=.
	}
if 1984<=`year' {
	gen byte studpt=0
	replace studpt=1 if studftpt==2
	}
lab var studpt "Part-time student"
notes studpt: Not available before 1984
notes studpt: Full-time students coded as zero
notes studpt: CPS: derived from a-ftpt, peschft
